import axios from "../assets/axios/config";

//token一天后过期，要重新登录
//用户登录
export const login = async (params: any) =>{
    return await axios.post('/login',params);
}

//获取用户信息
export const getUser = async ()=>{
    return await axios.get('/getInfo');
};

//修改用户密码
export const updateUserPassword = async (params:any) =>{
    return await axios.post('/update-password',params);
};
